import request from '@/utils/request'

// 企业运营支出列表分页并查询
export function getCostBusinessList(params) {
  return request({
    url: '/costBusiness/list',
    method: 'POST',
    params
  })
}

// 查询单条企业运营支出数据
export function selectCostBusiness(params) {
  return request({
    url: '/costBusiness/load',
    method: 'POST',
    params
  })
}

// 企业运营支出添加
export function addCostBusiness(data) {
  return request({
    url: '/costBusiness/add',
    method: 'POST',
    data
  })
}

// 查询团队
export function selectTeam(params) {
  return request({
    url: '/costBusiness/team',
    method: 'post',
    params
  })
}

// 查询支付类型
export function selectCostType(params) {
  return request({
    url: '/costBusiness/costType',
    method: 'POST',
    params
  })
}

// 删除单条企业运营支出数据
export function deleteCostBusiness(params) {
  return request({
    url: '/costBusiness/delete',
    method: 'POST',
    params
  })
}

// 修改单条企业运营支出数据
export function updateCostBusiness(data) {
  return request({
    url: '/costBusiness/update',
    method: 'POST',
    data
  })
}

// 查询办公地点
export function selectOfficePlace() {
  return request({
    url: '/costBusiness/officePlace',
    method: 'POST'
  })
}

// 查询经办人
export function selectOperator(params) {
  return request({
    url: '/costBusiness/operator',
    method: 'POST',
    params
  })
}
